package cn.aitrox.ry.app.web.controller.anno;

import cn.aitrox.ry.bean.RespResult;
import cn.aitrox.ry.service.anno.dto.anno.setting.in.AnnoSettingReadInDto;
import cn.aitrox.ry.service.anno.dto.anno.setting.out.AnnoSettingInfoDto;
import cn.aitrox.ry.service.anno.feign.AnnoSettingFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AnnoSettingController {

    @Autowired
    @Lazy
    private AnnoSettingFeign annoSettingFeign;

    @PostMapping(value = "/anno/setting/read")
    public RespResult<AnnoSettingInfoDto> read(@Validated @RequestBody AnnoSettingReadInDto input) {
        return annoSettingFeign.read(input);
    }

}
